const { Controller } = require('egg');

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.body = {
      code: 200,
      message: '衣柜搭配应用API服务',
      data: {
        name: 'Wardrobe API',
        version: '1.0.0',
        description: '衣柜搭配应用后端API服务',
        timestamp: new Date().toISOString(),
      },
    };
  }
}

module.exports = HomeController;
